package fr.umlv.ig.metroView.confView;

import java.awt.Dimension;

import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;

import fr.umlv.ig.model.MetroModelImpl;

public class TabbedStationConfView {

	
	public static JTabbedPane getTabbedStationPanel(MetroModelImpl model) {
		JTabbedPane tabbedPane = new JTabbedPane();
		
		JScrollPane treeStationPane = TreeStationConfView.getTreeStationPanel(model);
		treeStationPane.setPreferredSize(new Dimension(250,0));
		tabbedPane.add("Tree",treeStationPane);
		
		JPanel tableStationPanel = TableStationConfView.getTableStationPanel(model);
		tableStationPanel.setPreferredSize(new Dimension(250,350));
		tableStationPanel.setMinimumSize(new Dimension(250,350));
		tableStationPanel.setSize(new Dimension(250,350));

		tabbedPane.add("Table", tableStationPanel);
		
		
		
		return tabbedPane;
	}
	
	
}
